package com.example.shopping.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shopping.pojo.domain.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author Dream
 * @version 1.0
 * @date 2020/11/9 11:45
 */
@Mapper
@Component
public interface UserDao extends BaseMapper<UserBean> {

    /**
     * 登录检查/获取会员
     * @param xh
     * @return
     */
    UserBean getUser(String xh);

    /**注册添加用户
     * @param userBean
     */
    void addUser(UserBean userBean);

    /**
     * 修改密码
     * @param password
     * @param xh
     */
    void updatePswd(@Param(value="password") String password,@Param(value="xh") String xh);
}
